package com.zr.bili.service;

import com.zr.bili.dao.UserMapper;
import com.zr.bili.dao.VideoMapper;
import com.zr.bili.entity.User;
import com.zr.bili.entity.Video;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangrui
 * @date 2020-04-11 22:37
 */
@Service
public class VideoService {
    @Autowired
    private VideoMapper videoMapper;

    public int insertVideoService(Video video){
        return  videoMapper.insertVideo(video);
    }

    public List<String> selectTitleService(){
        return  videoMapper.selectAllTitle();
    }
}